//
// Created by ultcrt on 2021/5/21.
//

#ifndef DATA_PROCESSOR_HARDWARE_ALERT_H
#define DATA_PROCESSOR_HARDWARE_ALERT_H

#include "pwm_driver.h"
#include "rgb_led_driver.h"
#include <string>

class HardwareAlert {
private:
    RGBLEDDriver light;
    PWMDriver buzzer;
    PWMDriver vibrator;

public:
    void set(Color color, bool buzzer, bool vibrator);

    static Color string2color(const std::string& color);

    HardwareAlert();
};


#endif //DATA_PROCESSOR_HARDWARE_ALERT_H
